package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户动态购买记录表
 * </p>
 *
 * @author Shane
 * @since 2019-08-23
 */
@TableName("user_dynamic_buy_log")
public class UserDynamicBuyLog implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 动态id
	 */
	@TableField(value="dynamic_id")
	private Integer dynamicId;

	/**
	 * 用户id
	 */
	@TableField(value="user_id")
	private Integer userId;

	/**
	 * 主播id
	 */
	@TableField(value="buy_user_id")
	private Integer buyUserId;

	/**
	 * 金币数量
	 */
	private Integer coin;

	/**
	 * 积分数量
	 */
	private Double credit;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private Date createTime;

	public UserDynamicBuyLog() {
	}

	public UserDynamicBuyLog(Integer userId, Integer buyUserId, Integer dynamicId, Integer coin, Double credit) {
		this.userId = userId;
		this.buyUserId = buyUserId;
		this.dynamicId = dynamicId;
		this.coin = coin;
		this.credit = credit;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getBuyUserId() {
		return buyUserId;
	}

	public void setBuyUserId(Integer buyUserId) {
		this.buyUserId = buyUserId;
	}

	public Integer getDynamicId() {
		return dynamicId;
	}

	public void setDynamicId(Integer dynamicId) {
		this.dynamicId = dynamicId;
	}

	public Integer getCoin() {
		return coin;
	}

	public void setCoin(Integer coin) {
		this.coin = coin;
	}

	public Double getCredit() {
		return credit;
	}

	public void setCredit(Double credit) {
		this.credit = credit;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
